#-*- codeing = utf-8 -*-
#@Time : 2020/11/22 23:26
#@Author : 阳某
#@File : test1.py
#@Software : PyCharm

import time
print(time.localtime())
print(time.strftime("%H:%M:%S", time.localtime()))
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + " 定时发送测试")
# while True:
#   time_now = time.strftime("%H:%M:%S", time.localtime()) # 刷新
#   if time_now == "15:30:10": #此处设置每天定时的时间
#
#     # 此处3行替换为需要执行的动作
#     print("hello")
#     subject = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + " 定时发送测试"
#     print(subject)
#
#     time.sleep(2) # 因为以秒定时，所以暂停2秒，使之不会在1秒内执行多次
